package nc.ui.mmpac.sumpickm.dialog.action;

import nc.ui.mmf.framework.dialog.general.IBtnHandlerStrategy;
import nc.ui.pub.beans.UIButton;
import nc.vo.mmpac.sumpickm.consts.SumPickmConst;

public class SumdimActionStrategy implements IBtnHandlerStrategy {
    @Override
    public void handleBtn(UIButton btn) {
        String code = (String) btn.getAction().getValue("Code");
        if (SumPickmConst.BTN_CODE_SUMDIM_CLOSE.equals(code)) {
            btn.setMnemonic('c');
        }
        else if (SumPickmConst.BTN_CODE_SUMDIM_CONFIRM.equals(code)) {
            btn.setMnemonic('y');
        }
    }
}
